package cn.sdormitory.smartclass.dao;

import cn.sdormitory.smartclass.entity.ClassRepair;
import cn.sdormitory.smartclass.vo.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @创建人：zhouyang
 * @创建时间：2021/12/23 14:36
 * @version：V1.0
 */
@Mapper
public interface ClassRepairDao extends BaseMapper<ClassRepair> {
    List<ClassRepairVo> getAppClassRepair(@Param("repairDate") String repairDate, @Param("classId") Long classId);
    List<ClassDeviceVo> getAppClassDevice();
    ClassRepairStaVo getAppClassRepairCount();
    List<ClassRepairInfoVo> getAppNewClassRepairList(@Param("classDeptId")Long classDeptId,@Param("classId") Long classId);
    List<ClassRepairInfoVo> getAppProcessList(@Param("classDeptId")Long classDeptId,@Param("classId") Long classId);
    List<ClassRepairInfoVo> getAppHistoryRepList(@Param("classDeptId")Long classDeptId,@Param("classId") Long classId);
    List<ClassRepairInfoVo> getAppHisRepListByCId(@Param("classId") Long classId);
    ClassRepair getRepairInfoById(@Param("id") Long id);
    List<ClassRepairInfoVo> getAppClassRepairList(@Param("classId") Long classId);
    ClassRepairCountVo getClassRepairCount(@Param("classDeptId")Long classDeptId);
    ClassRepairCountVo getClassRepairAllCount();
    List<ClassRepairInfoVo> getAllClassRepairList();

}
